package workalg.compus;

import java.util.Scanner;

/**
 * @AUTHOR LYF
 * @DATE 2022/3/31
 * @VERSION 1.0
 * @DESC
 */
public class Main {
    static void printStr(int n){
       // Stack stack  = new Stack();
        String tmp = "";
        while (n>0){
           // System.out.print(n%2);
           // stack.push(n%2);
            tmp =  n%2 + tmp;
            n/=2;
        }
//        String tmp = "";
//        while(!stack.isEmpty()){
//            //System.out.print(stack.pop());
//        }
        System.out.println(tmp);
    }

    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        printStr(n);
        input.close();
      //  Stack<>
    }

}
